@import '~less/mixin.less';


.box {
  background: #fff;
  padding: 26px 15px 28px;
  margin-bottom: 8px;

  &-header {
    color: #1B160C;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;

    .text-overflow();
  }

  &-body {
    padding-top: 22px;
  }
}

.step {
  display: flex;
  justify-content: space-between;
  padding: 38px 30px 34px 30px;

  ul {
    flex-grow: 1;
    display: flex;

    li {
      position: relative;
    }

    & + ul {
      margin-left: 18px;
    }

    &:nth-child(even) {
      .step-legend {
        background: #FF861B;
      }
    }
  }

  &-merge {
    ul {
      &:first-child:not(:last-child) {
        li:last-child {
          .step-legend {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
          }
          .step-date {
            display: none;
          }
        }
      }

      & + ul {
        margin-left: 0;

        li:first-child {
          .step-legend {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
          }
          .step-date {
            left: 0;
          }
        }
      }
    }
  }

  &-tip {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: -42px;

    span {
      border-radius: 3px;
      position: relative;
      display: inline-block;
      font-size: 14px;
      color: #4a4a4a;
      white-space: nowrap;
      padding: 5px 7px;
      background: #fff;
      box-shadow:0px 1px 7px 0px rgba(0,0,0,0.1);
    }

    &:before {
      z-index: 10;
      content: '';
      z-index: 10;
      content: '';
      position: absolute;
      width: 0;
      height: 0px;
      border-style: solid;
      border-width: 5px;
      border-color: #fff #fff transparent transparent;
      box-shadow: 0 0 7px rgba(0,0,0,0.1);
      transform: rotate(135deg);
      bottom: -5px;
      left: 50%;
      margin-left: -5px;
    }

    &:after {
      z-index: 10;
      content: '';
      position: absolute;
      bottom: 0;
      width: 20px;
      height: 8px;
      background: #fff;
      left: 50%;
      margin-left: -10px;

    }
  }

  &-legend {
    height: 22px;
    line-height: 22px;
    border-radius: 3px;
    padding: 0 7px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    background: #FFAA1B;
  }

  &-date {
    position: absolute;
    left: 50%;
    margin-top: 6px;
    transform: translate(-50%, 0);
    font-size: 12px;
    color: #4A4A4A;
    text-align: center;
    line-height: 1.2;
    max-width: 10em;
    min-width: 2.5em;
  }

  &-spacer {
    margin-top: 4px;
    flex-grow: 1;
    height: 14px;
    background: #eee;
  }
}

.article {
  p {
    font-size: 14px;
    color: #4A4A4A;
    line-height: 1.5;
    margin: 0 0 1em;
  }
}

.entrance {
  position: relative;
  height: 49px;
  box-shadow:0px -1px 4px 0px rgba(223,222,220,0.4);

  &-action {
    display: block;
    width: 100%;
    border-radius: 0;
    line-height: 49px;
    height: 49px;
    font-size: 17px;
    border: none;

    &[disabled] {
      border-color: none;
    }
  }
}
